package com.ws.singleton;

public class SingleTest {
    public static void main(String[] args) {

        Bank2 bank2 = Bank2.instance;
//        Bank2.instance = null;
        Bank2 bank3 = Bank2.instance;

        System.out.println(bank2 == bank3);
    }
}

class Bank2 {

    private Bank2(){}

    public static final Bank2 instance = new Bank2();
}
